function createLog(prefix = "MSG") {
    return function (...args) {
        console.log(`[${prefix}]: `, ...args);
    };
}

const hlog = createLog("HTTP");
const wlog = createLog("WSS");

module.exports = {
    createLog,
    hlog,
    wlog,
};
